<?php 
use \PsiFramework\Classes\Util\UI\Printer;
use \PsiFramework\Classes\Util\UI\HTML;

$step = $response->getAttribute('step');
$etape1 = ($step>=1) ? ' termine':'';
$etape2 = ($step>=2) ? ' termine':'';
$etape3 = ($step>=3) ? ' termine':'';
$etape4 = ($step>=4) ? ' termine':'';

$empty = $response->getAttribute('empty');
?>
<div id="panierEtape">
	<div id="etape-1" class="etape<?php Printer::display($etape1); ?>">
		<a href="<?php Printer::display(HTML::linkHref('action=Index')); ?>">
			<span class="cont prem">
				<span class="icone">1</span>
				<span class="titre"><?php Printer::display($languageManager->getText('HOME')); ?></span>
			</span>
		</a>
	</div>
	<div id="etape-2" class="etape<?php Printer::display($etape2); ?>">
    	<a href="<?php Printer::display(HTML::linkHref('action=ShowBasket')); ?>">
    		<span class="cont">
    			<span class="icone">2</span>
    			<span class="titre"><?php Printer::display($languageManager->getText('BASKET')); ?></span>
    		</span>
    	</a>
	</div>
	<div id="etape-3" class="etape<?php Printer::display($etape3); ?>">
    	<a href="<?php if (!$empty) { Printer::display(HTML::linkHref('action=CheckoutBasket')); } else { echo '#'; } ?>">
    		<span class="cont">
    			<span class="icone">3</span>
    			<span class="titre"><?php Printer::display($languageManager->getText('PAYMENT')); ?></span>
    		</span>
    	</a>
	</div>
	<div id="etape-4" class="etape<?php Printer::display($etape4); ?>">
		<span class="cont dern">
			<span class="icone">4</span>
			<span class="titre"><?php Printer::display($languageManager->getText('ORDER_VALIDATED')); ?></span>
		</span>
	</div>
</div>
